package com.ssm.mapper;

import com.ssm.entity.Dept;
import com.ssm.entity.Emp;
import com.ssm.entity.QueryObject;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmpMapper {
    int insert(Emp record);

    int deleteByPrimaryKey(Long id);

    int updateByPrimaryKey(Emp record);

    Emp selectByPrimaryKey(Long id);

    List<Emp> selectAll();
    /*用于分页的两个方法*/
    int selForCount(QueryObject queryObject);

    List<Emp> selForList(QueryObject queryObject);
}